import http from "@/utils/http";

export default {
    Login: (username: string, password: string) =>
        http.post(
            "/Api/Login",
            {
                username: username,
                password: password,
            }
        ),
    getAdminRoute_List: (data:object) =>
        http.get(
            "/Api/getAdminRoute_List",
            {
                params:{...data}
            }
        ),
    // 管理员获取用户列表
    getUserInfoList: (data:object) =>
        http.get(
            "/Admin/getUserList",
            {
                params:{...data}
            }
        ),
    // 管理员获取权限列表
    getUserRoot_List: (data:object) =>
        http.get(
            "/Admin/getUserRoot_List",
            {
                params:{...data}
            }
        ),
    // 获取用户资料
    getUser_info: (data:object) =>
        http.get(
            "/Admin/getUserInfo",
            {
                params:{...data}
            }
        ),

    // 修改用户资料
    updateUser_List: (data:any) =>
        http.post(
            "/Admin/updateUser_List",
            {...data}
        ),
};
